import request from '@/utils/request'

// 查询文章点赞列表
export function listLike(query) {
  return request({
    url: '/ams/like/list',
    method: 'get',
    params: query
  })
}

// 点赞
export function addLike(data) {
  return request({
    url: '/ams/like',
    method: 'post',
    data: data
  })
}

// 取消点赞
export function cancelLike(data) {
  return request({
    url: '/ams/like',
    method: 'delete',
    data: data
  })
}
